package com.yyplatform.admin.platform.schedule.model.entity;

import org.springframework.context.annotation.Lazy;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author sleepforests@163.com
 * <p>
 * Created on 2024/9/21 22:47
 */
@Entity
@Getter
@Setter
@Lazy(value = false)
@Table(name = "sys_schedule_job")
public class JobEntity extends BaseEntity {


    @Column(name = "bean_name", nullable = false, columnDefinition = " varchar(200) comment 'SpringBean名称' ")
    private String beanName;

    @Column(name = "params", columnDefinition = " varchar(2000) comment '启动参数' ")
    private String params;


    @Column(name = "cron_expression", nullable = false, columnDefinition = " varchar(200) comment 'cron表达式' ")
    private String cronExpression;


    @Column(name = "remark", nullable = false, columnDefinition = " varchar(200) comment '配置说明' ")
    private String remark;

    @Column(name = "status", nullable = false, columnDefinition = "tinyint comment '状态' ")
    private Integer status;

}
